<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$merchid=$this->checklogin();
/*******basic*******/
if($_RQ['op']=='basic'){
	$item['merchlink']=custom_url('jy_lianmerch/index//merchid='.$merchid.'&current_plugin=jy_lianmerch',true);
	$item['shoplinksys']='jy_lianmerch/merchshop//merchid='.$merchid.'&current_plugin=jy_lianmerch';
	$item['shoplink']=custom_url($item['shoplinksys'],true);
	$item['shoplink2']=custom_url('jy_merch/myshop//merchid='.$merchid.'&current_plugin=jy_lianmerch',true);
	$item['appurl']=custom_url('jy_merch/getapp//merchid='.$merchid,true);
	$return['item']=$item;
	$htmls=array(
		'type'=>'look',
		'desc'=>'入口链接',
		'look'=>array(
			//array('type'=>'copy','title'=>'商户平台','name'=>'merchlink'),
			//array('type'=>'ewm','title'=>'商户平台','name'=>'merchlink'),
			array('type'=>'copy','title'=>'商户商城长地址','name'=>'shoplink'),
			array('type'=>'copy','title'=>'商户商城短地址','name'=>'shoplinksys'),
			array('type'=>'ewm','title'=>'商户商城入口','name'=>'shoplink'),
			array('type'=>'copy','title'=>'APP下载地址','name'=>'appurl','help'=>''),
			array('type'=>'ewm','title'=>'APP下载二维码','name'=>'appurl','help'=>''),
			//array('type'=>'copy','title'=>'商户小店','name'=>'shoplink2'),
			//array('type'=>'ewm','title'=>'商户小店','name'=>'shoplink2'),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}